{ if $ajax != 'true' }
<header>
    <h1>Liste des chasseurs</h1>
</header>
{$autoCompleteVille}
<br />
<div class="list">
    <table id="listing">
        { /if }
        <thead>
            <tr>
                <th>Nom</th>
                <th>Ville</th>
                <th>Note</th>
            </tr>
        </thead>
        <tbody>
            { foreach from=$data item=element }
            <tr>
                <td>
                    <a href="{ $SYS_FOLDER }hunters/{ $element._id }-{ $element.nom|replace:' ':'-' }-{ $element.prenom|replace:' ':'-' }">
                        { $element.nom } { $element.prenom }
                    </a>
                </td>
                <td>
                    <a href="{ $SYS_FOLDER }ville/{ $element.ville.0 }-{ $element.ville.2|replace:' ':'-' }">{ $element.ville.2 }</a>
                </td>
                <td>{ $element.note }</td>
            </tr>
            { /foreach }
        </tbody>
        <tfoot>
            <tr class="pagination">
                <td colspan="3">
                { section name=p start=$pageStart loop=$pageTotal }
                    { if $smarty.section.p.index <= $pageStop }
                        { if $page == $smarty.section.p.index }
                        { $smarty.section.p.index }
                        { else }
                        <a href="{ $SYS_FOLDER }ville/page-{ $smarty.section.p.index }">{ $smarty.section.p.index }</a>
                        { /if }
                    { /if }
                { /section }
                </td>
            </tr>
        </tfoot>
        { if $ajax != 'true' }
    </table>
</div>
{ /if }